home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global frag
- set frag to 0
- set the cursor of sprite 17 to 302
- end
-
- on selectpict
- global pictno, pictname
- set pictname to string(pictno)
- set pictname to the pathName & pictname
- set mypict to fileio(mnew, "read", pictname)
- set the picture of cast "Picture" to mypict(mreadpict)
- mypict(mdispose)
- end
-
- on nextpict
- global pictno, topno, lastno, pictname, qtno
- set pictno to pictno + 1
- if pictno = 1010 then
- set pictno to pictno + 1
- set pictname to string(pictno)
- set pictname to the pathName & pictname
- set mypict to fileio(mnew, "read", pictname)
- set the picture of cast "Picture2" to mypict(mreadpict)
- mypict(mdispose)
- go(7)
- else
- if pictno = 1014 then
- selectpict()
- set qtno to 1
- go(15)
- else
- if pictno = 1016 then
- go(30)
- else
- selectpict()
- go(5)
- end if
- end if
- end if
- end
-
- on backpict
- global pictno, topno, lastno, pictname, qtno
- set pictno to pictno - 1
- if pictno = 1014 then
- selectpict()
- set qtno to 1
- go(15)
- else
- if pictno = 1002 then
- selectpict()
- go(25)
- else
- selectpict()
- go(5)
- end if
- end if
- end
-
- on enlargement
- global frag, myv, myho, myw, myhi, myl, myt
- puppetSprite(17, 1)
- set newho to ((320 - myho) * 4) + 320
- set neww to ((240 - myv) * 4) + 240
- put newho
- if newho < (640 - (2 * myw)) then
- set newho to 640 - (2 * myw)
- end if
- if newho > (2 * myw) then
- set newho to 2 * myw
- end if
- put newho
- set the locH of sprite 17 to newho
- put neww
- if neww < (480 - (2 * myhi)) then
- set neww to 480 - (2 * myhi)
- end if
- if neww > (2 * myhi) then
- set neww to 2 * myhi
- end if
- put neww
- set the locV of sprite 17 to neww
- set the height of sprite 17 to myhi * 4
- set the width of sprite 17 to myw * 4
- set the cursor of sprite 17 to -1
- updateStage()
- set frag to 1
- end
-
- on small
- global frag, myv, myho, myw, myhi, myl, myt
- set the height of sprite 17 to myhi
- set the width of sprite 17 to myw
- updateStage()
- set frag to 0
- puppetSprite(17, 0)
- set the cursor of sprite 17 to 302
- end
-